↳ Prolog
↳ PrologToPiTRSProof
perm_in_ga(X, .(X0, Y)) → U3_ga(X, X0, Y, app1_in_aag(X1, .(X0, X2), X))
app1_in_aag(.(X0, X), Y, .(X0, Z)) → U1_aag(X0, X, Y, Z, app1_in_aag(X, Y, Z))
app1_in_aag([], Y, Y) → app1_out_aag([], Y, Y)
U1_aag(X0, X, Y, Z, app1_out_aag(X, Y, Z)) → app1_out_aag(.(X0, X), Y, .(X0, Z))
U3_ga(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → U4_ga(X, X0, Y, X1, X2, app2_in_gga(X1, X2, Z))
app2_in_gga(.(X0, X), Y, .(X0, Z)) → U2_gga(X0, X, Y, Z, app2_in_gga(X, Y, Z))
app2_in_gga([], Y, Y) → app2_out_gga([], Y, Y)
U2_gga(X0, X, Y, Z, app2_out_gga(X, Y, Z)) → app2_out_gga(.(X0, X), Y, .(X0, Z))
U4_ga(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → U5_ga(X, X0, Y, perm_in_ga(Z, Y))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(X, X0, Y, perm_out_ga(Z, Y)) → perm_out_ga(X, .(X0, Y))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
perm_in_ga(X, .(X0, Y)) → U3_ga(X, X0, Y, app1_in_aag(X1, .(X0, X2), X))
app1_in_aag(.(X0, X), Y, .(X0, Z)) → U1_aag(X0, X, Y, Z, app1_in_aag(X, Y, Z))
app1_in_aag([], Y, Y) → app1_out_aag([], Y, Y)
U1_aag(X0, X, Y, Z, app1_out_aag(X, Y, Z)) → app1_out_aag(.(X0, X), Y, .(X0, Z))
U3_ga(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → U4_ga(X, X0, Y, X1, X2, app2_in_gga(X1, X2, Z))
app2_in_gga(.(X0, X), Y, .(X0, Z)) → U2_gga(X0, X, Y, Z, app2_in_gga(X, Y, Z))
app2_in_gga([], Y, Y) → app2_out_gga([], Y, Y)
U2_gga(X0, X, Y, Z, app2_out_gga(X, Y, Z)) → app2_out_gga(.(X0, X), Y, .(X0, Z))
U4_ga(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → U5_ga(X, X0, Y, perm_in_ga(Z, Y))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(X, X0, Y, perm_out_ga(Z, Y)) → perm_out_ga(X, .(X0, Y))
PERM_IN_GA(X, .(X0, Y)) → U3_GA(X, X0, Y, app1_in_aag(X1, .(X0, X2), X))
PERM_IN_GA(X, .(X0, Y)) → APP1_IN_AAG(X1, .(X0, X2), X)
APP1_IN_AAG(.(X0, X), Y, .(X0, Z)) → U1_AAG(X0, X, Y, Z, app1_in_aag(X, Y, Z))
APP1_IN_AAG(.(X0, X), Y, .(X0, Z)) → APP1_IN_AAG(X, Y, Z)
U3_GA(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → U4_GA(X, X0, Y, X1, X2, app2_in_gga(X1, X2, Z))
U3_GA(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → APP2_IN_GGA(X1, X2, Z)
APP2_IN_GGA(.(X0, X), Y, .(X0, Z)) → U2_GGA(X0, X, Y, Z, app2_in_gga(X, Y, Z))
APP2_IN_GGA(.(X0, X), Y, .(X0, Z)) → APP2_IN_GGA(X, Y, Z)
U4_GA(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → U5_GA(X, X0, Y, perm_in_ga(Z, Y))
U4_GA(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → PERM_IN_GA(Z, Y)
perm_in_ga(X, .(X0, Y)) → U3_ga(X, X0, Y, app1_in_aag(X1, .(X0, X2), X))
app1_in_aag(.(X0, X), Y, .(X0, Z)) → U1_aag(X0, X, Y, Z, app1_in_aag(X, Y, Z))
app1_in_aag([], Y, Y) → app1_out_aag([], Y, Y)
U1_aag(X0, X, Y, Z, app1_out_aag(X, Y, Z)) → app1_out_aag(.(X0, X), Y, .(X0, Z))
U3_ga(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → U4_ga(X, X0, Y, X1, X2, app2_in_gga(X1, X2, Z))
app2_in_gga(.(X0, X), Y, .(X0, Z)) → U2_gga(X0, X, Y, Z, app2_in_gga(X, Y, Z))
app2_in_gga([], Y, Y) → app2_out_gga([], Y, Y)
U2_gga(X0, X, Y, Z, app2_out_gga(X, Y, Z)) → app2_out_gga(.(X0, X), Y, .(X0, Z))
U4_ga(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → U5_ga(X, X0, Y, perm_in_ga(Z, Y))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(X, X0, Y, perm_out_ga(Z, Y)) → perm_out_ga(X, .(X0, Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
PERM_IN_GA(X, .(X0, Y)) → U3_GA(X, X0, Y, app1_in_aag(X1, .(X0, X2), X))
PERM_IN_GA(X, .(X0, Y)) → APP1_IN_AAG(X1, .(X0, X2), X)
APP1_IN_AAG(.(X0, X), Y, .(X0, Z)) → U1_AAG(X0, X, Y, Z, app1_in_aag(X, Y, Z))
APP1_IN_AAG(.(X0, X), Y, .(X0, Z)) → APP1_IN_AAG(X, Y, Z)
U3_GA(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → U4_GA(X, X0, Y, X1, X2, app2_in_gga(X1, X2, Z))
U3_GA(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → APP2_IN_GGA(X1, X2, Z)
APP2_IN_GGA(.(X0, X), Y, .(X0, Z)) → U2_GGA(X0, X, Y, Z, app2_in_gga(X, Y, Z))
APP2_IN_GGA(.(X0, X), Y, .(X0, Z)) → APP2_IN_GGA(X, Y, Z)
U4_GA(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → U5_GA(X, X0, Y, perm_in_ga(Z, Y))
U4_GA(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → PERM_IN_GA(Z, Y)
perm_in_ga(X, .(X0, Y)) → U3_ga(X, X0, Y, app1_in_aag(X1, .(X0, X2), X))
app1_in_aag(.(X0, X), Y, .(X0, Z)) → U1_aag(X0, X, Y, Z, app1_in_aag(X, Y, Z))
app1_in_aag([], Y, Y) → app1_out_aag([], Y, Y)
U1_aag(X0, X, Y, Z, app1_out_aag(X, Y, Z)) → app1_out_aag(.(X0, X), Y, .(X0, Z))
U3_ga(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → U4_ga(X, X0, Y, X1, X2, app2_in_gga(X1, X2, Z))
app2_in_gga(.(X0, X), Y, .(X0, Z)) → U2_gga(X0, X, Y, Z, app2_in_gga(X, Y, Z))
app2_in_gga([], Y, Y) → app2_out_gga([], Y, Y)
U2_gga(X0, X, Y, Z, app2_out_gga(X, Y, Z)) → app2_out_gga(.(X0, X), Y, .(X0, Z))
U4_ga(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → U5_ga(X, X0, Y, perm_in_ga(Z, Y))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(X, X0, Y, perm_out_ga(Z, Y)) → perm_out_ga(X, .(X0, Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
APP2_IN_GGA(.(X0, X), Y, .(X0, Z)) → APP2_IN_GGA(X, Y, Z)
perm_in_ga(X, .(X0, Y)) → U3_ga(X, X0, Y, app1_in_aag(X1, .(X0, X2), X))
app1_in_aag(.(X0, X), Y, .(X0, Z)) → U1_aag(X0, X, Y, Z, app1_in_aag(X, Y, Z))
app1_in_aag([], Y, Y) → app1_out_aag([], Y, Y)
U1_aag(X0, X, Y, Z, app1_out_aag(X, Y, Z)) → app1_out_aag(.(X0, X), Y, .(X0, Z))
U3_ga(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → U4_ga(X, X0, Y, X1, X2, app2_in_gga(X1, X2, Z))
app2_in_gga(.(X0, X), Y, .(X0, Z)) → U2_gga(X0, X, Y, Z, app2_in_gga(X, Y, Z))
app2_in_gga([], Y, Y) → app2_out_gga([], Y, Y)
U2_gga(X0, X, Y, Z, app2_out_gga(X, Y, Z)) → app2_out_gga(.(X0, X), Y, .(X0, Z))
U4_ga(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → U5_ga(X, X0, Y, perm_in_ga(Z, Y))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(X, X0, Y, perm_out_ga(Z, Y)) → perm_out_ga(X, .(X0, Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
APP2_IN_GGA(.(X0, X), Y, .(X0, Z)) → APP2_IN_GGA(X, Y, Z)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
APP2_IN_GGA(.(X), Y) → APP2_IN_GGA(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APP1_IN_AAG(.(X0, X), Y, .(X0, Z)) → APP1_IN_AAG(X, Y, Z)
perm_in_ga(X, .(X0, Y)) → U3_ga(X, X0, Y, app1_in_aag(X1, .(X0, X2), X))
app1_in_aag(.(X0, X), Y, .(X0, Z)) → U1_aag(X0, X, Y, Z, app1_in_aag(X, Y, Z))
app1_in_aag([], Y, Y) → app1_out_aag([], Y, Y)
U1_aag(X0, X, Y, Z, app1_out_aag(X, Y, Z)) → app1_out_aag(.(X0, X), Y, .(X0, Z))
U3_ga(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → U4_ga(X, X0, Y, X1, X2, app2_in_gga(X1, X2, Z))
app2_in_gga(.(X0, X), Y, .(X0, Z)) → U2_gga(X0, X, Y, Z, app2_in_gga(X, Y, Z))
app2_in_gga([], Y, Y) → app2_out_gga([], Y, Y)
U2_gga(X0, X, Y, Z, app2_out_gga(X, Y, Z)) → app2_out_gga(.(X0, X), Y, .(X0, Z))
U4_ga(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → U5_ga(X, X0, Y, perm_in_ga(Z, Y))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(X, X0, Y, perm_out_ga(Z, Y)) → perm_out_ga(X, .(X0, Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
APP1_IN_AAG(.(X0, X), Y, .(X0, Z)) → APP1_IN_AAG(X, Y, Z)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
APP1_IN_AAG(.(Z)) → APP1_IN_AAG(Z)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
PERM_IN_GA(X, .(X0, Y)) → U3_GA(X, X0, Y, app1_in_aag(X1, .(X0, X2), X))
U3_GA(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → U4_GA(X, X0, Y, X1, X2, app2_in_gga(X1, X2, Z))
U4_GA(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → PERM_IN_GA(Z, Y)
perm_in_ga(X, .(X0, Y)) → U3_ga(X, X0, Y, app1_in_aag(X1, .(X0, X2), X))
app1_in_aag(.(X0, X), Y, .(X0, Z)) → U1_aag(X0, X, Y, Z, app1_in_aag(X, Y, Z))
app1_in_aag([], Y, Y) → app1_out_aag([], Y, Y)
U1_aag(X0, X, Y, Z, app1_out_aag(X, Y, Z)) → app1_out_aag(.(X0, X), Y, .(X0, Z))
U3_ga(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → U4_ga(X, X0, Y, X1, X2, app2_in_gga(X1, X2, Z))
app2_in_gga(.(X0, X), Y, .(X0, Z)) → U2_gga(X0, X, Y, Z, app2_in_gga(X, Y, Z))
app2_in_gga([], Y, Y) → app2_out_gga([], Y, Y)
U2_gga(X0, X, Y, Z, app2_out_gga(X, Y, Z)) → app2_out_gga(.(X0, X), Y, .(X0, Z))
U4_ga(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → U5_ga(X, X0, Y, perm_in_ga(Z, Y))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(X, X0, Y, perm_out_ga(Z, Y)) → perm_out_ga(X, .(X0, Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
PERM_IN_GA(X, .(X0, Y)) → U3_GA(X, X0, Y, app1_in_aag(X1, .(X0, X2), X))
U3_GA(X, X0, Y, app1_out_aag(X1, .(X0, X2), X)) → U4_GA(X, X0, Y, X1, X2, app2_in_gga(X1, X2, Z))
U4_GA(X, X0, Y, X1, X2, app2_out_gga(X1, X2, Z)) → PERM_IN_GA(Z, Y)
app1_in_aag(.(X0, X), Y, .(X0, Z)) → U1_aag(X0, X, Y, Z, app1_in_aag(X, Y, Z))
app1_in_aag([], Y, Y) → app1_out_aag([], Y, Y)
app2_in_gga(.(X0, X), Y, .(X0, Z)) → U2_gga(X0, X, Y, Z, app2_in_gga(X, Y, Z))
app2_in_gga([], Y, Y) → app2_out_gga([], Y, Y)
U1_aag(X0, X, Y, Z, app1_out_aag(X, Y, Z)) → app1_out_aag(.(X0, X), Y, .(X0, Z))
U2_gga(X0, X, Y, Z, app2_out_gga(X, Y, Z)) → app2_out_gga(.(X0, X), Y, .(X0, Z))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
U4_GA(app2_out_gga(Z)) → PERM_IN_GA(Z)
U3_GA(app1_out_aag(X1, .(X2))) → U4_GA(app2_in_gga(X1, X2))
PERM_IN_GA(X) → U3_GA(app1_in_aag(X))
app1_in_aag(.(Z)) → U1_aag(app1_in_aag(Z))
app1_in_aag(Y) → app1_out_aag([], Y)
app2_in_gga(.(X), Y) → U2_gga(app2_in_gga(X, Y))
app2_in_gga([], Y) → app2_out_gga(Y)
U1_aag(app1_out_aag(X, Y)) → app1_out_aag(.(X), Y)
U2_gga(app2_out_gga(Z)) → app2_out_gga(.(Z))
app1_in_aag(x0)
app2_in_gga(x0, x1)
U1_aag(x0)
U2_gga(x0)
PERM_IN_GA(X) → U3_GA(app1_in_aag(X))
POL(.(x1)) = 1 + x1
POL(PERM_IN_GA(x1)) = 1 + x1
POL(U1_aag(x1)) = 1 + x1
POL(U2_gga(x1)) = 1 + x1
POL(U3_GA(x1)) = x1
POL(U4_GA(x1)) = 1 + x1
POL([]) = 0
POL(app1_in_aag(x1)) = x1
POL(app1_out_aag(x1, x2)) = x1 + x2
POL(app2_in_gga(x1, x2)) = x1 + x2
POL(app2_out_gga(x1)) = x1
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
U4_GA(app2_out_gga(Z)) → PERM_IN_GA(Z)
U3_GA(app1_out_aag(X1, .(X2))) → U4_GA(app2_in_gga(X1, X2))
app1_in_aag(.(Z)) → U1_aag(app1_in_aag(Z))
app1_in_aag(Y) → app1_out_aag([], Y)
app2_in_gga(.(X), Y) → U2_gga(app2_in_gga(X, Y))
app2_in_gga([], Y) → app2_out_gga(Y)
U1_aag(app1_out_aag(X, Y)) → app1_out_aag(.(X), Y)
U2_gga(app2_out_gga(Z)) → app2_out_gga(.(Z))
app1_in_aag(x0)
app2_in_gga(x0, x1)
U1_aag(x0)
U2_gga(x0)